/**
 * 
 */
package com.shequan.user.service.impl;

import com.shequan.common.bean.ResultDataStruct;
import com.shequan.user.bean.pojo.UserWorkJobRlt;
import com.shequan.user.dao.UserWorkJobRltDAO;
import com.shequan.user.service.UserWorkJobRltService;

/**
 * <P>
 * Copyright 2012.
 * </p>
 * <P>
 * All Rights Reserved.
 * </p>
 * @author YuJF
 * @version 1.0, 2012-5-21
 * @see com.shequan.user.service.impl.UserWorkJobRltServiceImpl 
 * @since 1.0
 */
public class UserWorkJobRltServiceImpl implements UserWorkJobRltService {
	private UserWorkJobRltDAO userWorkJobRltDAO; 

	public void setUserWorkJobRltDAO(UserWorkJobRltDAO userWorkJobRltDAO) {
		this.userWorkJobRltDAO = userWorkJobRltDAO;
	}

	/* (non-Javadoc)
	 * @see com.shequan.user.service.UserWorkJobRltService#addWorkJobRlt(com.shequan.user.bean.pojo.UserWorkJobRlt)
	 */
	public ResultDataStruct<String> addWorkJobRlt(UserWorkJobRlt userWorkJobRlt) {
		ResultDataStruct<String> rds=new ResultDataStruct<String>();
		int rowNum=userWorkJobRltDAO.insertSelective(userWorkJobRlt);
		if(rowNum==1){
			rds.setBusiSuccess(true);
		}else{
			rds.setBusiSuccess(false);
		}
		rds.setSuccess(true);
		return rds;
	}

}
